package com.zprmb.udzt;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.zprmb.udzt.ll.BaseHelper;

/**
 * 邀请规则
 * 
 * @author shenshao
 * 
 */
public class Invateinfo extends BaseActivity {
	private ImageView img_back;
	private TextView tv_customer;
	private RelativeLayout rl_back;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.invate_info);
		BbtApplication.getInstance().addActvity(this);
		// this.finishFromChild(getParent());

		img_back = (ImageView) findViewById(R.id.img_back);
		tv_customer = (TextView) findViewById(R.id.enterprise_tel);
		tv_customer.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				BaseHelper
						.showDialog2(Invateinfo.this, "拨号", "400-0101-016", 1);
			}
		});
		rl_back = (RelativeLayout) findViewById(R.id.rl_back);
		rl_back.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				finish();
			}
		});
		img_back.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				finish();
			}
		});
	}

	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
		BbtApplication.getInstance().removeActvity(this);
	}
}
